<?php
/**
 * File: cmscovers.php.
 * Author: caoqicheng@haibao.com
 * Editor: PhpStorm
 * Date: 17/2/7 上午10:45
 * Brief:
 */
namespace haibao\jiepai\model\data\cover;

class CmsCovers extends \haibao\jiepai\model\data\Base{
	
	/**
	 * -1是，0否
	 * 是否是删除
	 */
	const FLAG_DEL = -1;
	const FLAG_IS = 0;
	
	/**
	 * 1->左，2->右
	 * LAYOUT 布局
	 */
	const LAYOUT_LEFT = 1;
	const LAYOUT_RIGHT = 2;
	
	public $Color;

	public $CreateTime;
	
	public $Title;
	
	public $Picture;
	
	public $Layout;

	public $Author;
	
	public $Flag;
	
	
	
	public function __construct(){
		parent::__construct();
		$this->setColumnName('Id', 'CoverID');
		
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->stringField('Color', 'Color');
		$this->stringField('Title', 'Title');
		$this->intField('Picture', 'Picture');
		$this->intField('Layout', 'Layout');
		$this->intField('Author', 'Author');
		$this->intField('Flag', 'Flag');
		
		
		$this->setTableName('cms_covers');
	}
}